package com.platform.wechat.service;

import com.platform.wechat.common.JsonBean;
import com.platform.wechat.entity.WxUser;
import org.jdom2.Element;
import org.springframework.stereotype.Repository;

import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * @author CX
 * @create 2021-07-28 11:56
 */
@Repository
public interface Wechat114Service {

    String Wechat114Msg(Element rootElement);

    JsonBean getUserInfoByCode(String code, HttpSession session);

    JsonBean getShareData(String targetUrl);

    String handleWxMsg(Map<String, String> map);

    JsonBean oAuth(String code);

    JsonBean jsConfig(String url);

    JsonBean addWxUser(WxUser wxUser);

    JsonBean deleteWxUser(Integer id);

    JsonBean updateWxUser(WxUser wxUser);

    JsonBean selectById(Integer id);

    JsonBean selectWxUserList();
}
